/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package br.com.MOS.javacc.applications;

import javax.microedition.xlet.Xlet;
import javax.microedition.xlet.XletStateChangeException;

/**
 *
 * @author cbs
 */
public class Application extends Thread{
    public Xlet xlet;
    public ApplicationContext context;

    public Application(Xlet p_xlet, ApplicationContext p_context){
        xlet = p_xlet;
        context = p_context;
    }

    @Override
    public void run(){
        try {
            xlet.initXlet(context);
            //tirar...
            xlet.startXlet();
            //--
        } catch (XletStateChangeException ex) {
            System.out.println("Erro ao carregar: \n" + ex.getMessage());
        }
    }
}
